package com.ruoyi.sale.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.sale.domain.ErpWarehouseOut;

/**
 * 出库单Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public interface ErpWarehouseOutMapper
{
    /**
     * 查询出库单
     *
     * @param id 出库单主键
     * @return 出库单
     */
    public ErpWarehouseOut selectErpWarehouseOutById(Long id);

    /**
     * 查询出库单列表
     *
     * @param erpWarehouseOut 出库单
     * @return 出库单集合
     */
    public List<ErpWarehouseOut> selectErpWarehouseOutList(ErpWarehouseOut erpWarehouseOut);

    /**
     * 新增出库单
     *
     * @param erpWarehouseOut 出库单
     * @return 结果
     */
    public int insertErpWarehouseOut(ErpWarehouseOut erpWarehouseOut);

    /**
     * 修改出库单
     *
     * @param erpWarehouseOut 出库单
     * @return 结果
     */
    public int updateErpWarehouseOut(ErpWarehouseOut erpWarehouseOut);

    /**
     * 删除出库单
     *
     * @param id 出库单主键
     * @return 结果
     */
    public int deleteErpWarehouseOutById(Long id);

    /**
     * 批量删除出库单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteErpWarehouseOutByIds(Long[] ids);

    public List<Map<String, Object>> selectLogisticsCompanies();
    int insertOutItem(Map<String, Object> params);
}
